package com.net;

import com.easemob.helpdesk.bean.MsgChat;

import java.util.ArrayList;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;

/**
 * Created by xiaolong.wei on 2018/8/30.
 */

public interface MsgApiService {

    @POST("message/turn")
    @FormUrlEncoded
    Call<BaseResponse> messageTurn(@Header("t") String t, @Header("uid") String uid, @Field("ownerId") String ownerId, @Field("newUserId") String newUserId, @Field("oldUserId") String oldUserId);

    @POST("message/list")
    @FormUrlEncoded
    Call<BaseResponse<ArrayList<MsgChat>>> messageList(@Header("t") String t , @Header("user_id") String user_id, @Field("fromInfo") String fromInfo, @Field("page") String page, @Field("pagesize") String pagesize);
}
